package com.shameit.goodqrinfomanager.adapter;

import com.chad.library.BR;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.shameit.goodqrinfomanager.bean.enity.ActionLogBean;
import com.shameit.goodqrinfomanager.databinding.ItemActionLogBinding;

import org.jetbrains.annotations.NotNull;

public class ActionAdapter extends BaseQuickAdapter<ActionLogBean, BaseDataBindingHolder<ItemActionLogBinding>> {
    public ActionAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ItemActionLogBinding> itemActionLogBindingBaseDataBindingHolder, ActionLogBean actionLogBean) {
        ItemActionLogBinding binding = itemActionLogBindingBaseDataBindingHolder.getDataBinding();
        if (binding != null) {
            binding.setData(actionLogBean);
        }
    }
}
